package com.project.visuallinks.client;

import com.google.gwt.event.dom.client.DoubleClickEvent;
import com.google.gwt.event.dom.client.DoubleClickHandler;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.user.client.Event;
import com.google.gwt.user.client.ui.Label;

public class Vtext extends Label {
	
	public Vtext() {
	    super();
	    sinkEvents(Event.ONDBLCLICK);
	  } 
	public Vtext(String text) {
		super(text);
	}

    public HandlerRegistration addDoubleClickHandler(DoubleClickHandler handler) {
        return addDomHandler(handler, DoubleClickEvent.getType());
      }
}
